Enhance test coverage and update dependencies for development#258
Merged
mercyblitz merged 27 commits intomainfrom Mar 19, 2026
Merged
Enhance test coverage and update dependencies for development#258mercyblitz merged 27 commits intomainfrom
mercyblitz merged 27 commits intomainfrom
Conversation
Bump org.mockito:mockito-core from 5.14.2 to 5.22.0
Update the Maven <revision> property in pom.xml from 0.1.8-SNAPSHOT to 0.1.9-SNAPSHOT to prepare the next development iteration.
…yFilter Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…rage Add missing test cases for StringToByteConverter and ClassFileJarEntryFilter
Add missing test cases for StringToByteConverter and ClassFileJarEntryFilter
Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…est-cases [WIP] Enhance code coverage for existing test cases
Enhance the code coverage of testing
Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…erage Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…tdeque Add test cases for ClassPathResourceConfigurationPropertyLoader to reach 100% coverage
Enhance tests for AbstractDeque and ClassPathResource for full coverage
…nsionFilter Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…dFileWatchService, and ArtifactDetector Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…ue, StringToIterableConverter, and AbstractURLClassPathHandle Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…ionUtils Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…ses-for-coverage Add tests for ThrowableFunction and FileExtensionFilter to approach 100% coverage
Update the maven-publish workflow to require a strict major.minor.patch revision input (updated description/default) and validate its format. Add a release job that tags the repo, creates a GitHub release (using gh), increments the patch to a next SNAPSHOT in pom.xml, and commits the bumped version. Add a new workflow (merge-main-to-branches.yml) that automatically merges main into dev and release on pushes to main, handling missing branches and merge conflicts with fail/notify behavior.
Update the project parent version from 0.2.3 to 0.2.5 to pick up updates in the microsphere-build parent POM (build/config fixes or improvements). No other source changes were made.
Codecov Report❌ Patch coverage is
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
…anch coverage Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…e-coverage-java-tests Refactor Sets/Maps/Lists MethodHandle dispatch for full branch coverage on any JDK
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




This pull request introduces significant improvements to CI workflows and enhances unit test coverage across the codebase. The main changes include automating branch merges from
maintodevandrelease, expanding and strengthening test cases for collections and converters, enforcing versioning standards in the Maven publishing workflow, and adding a new release automation step. There are also minor improvements to builder defaults and test coverage for classloading utilities.CI/CD Workflow Enhancements:
merge-main-to-branches.yml) that automatically merges themainbranch intodevandreleasebranches on every push tomain, reducing manual maintenance and ensuring branch consistency.maven-publish.yml) by:revisioninput and validating it before proceeding. [1] [2]releasejob that creates a git tag and GitHub release, bumps the patch version inpom.xml, and pushes the updated version for continued development.Test Coverage Improvements:
AbstractDequeTest: Added tests forgetFirst,getLast,removeLastOccurrence,descendingIterator, size checks, and more, improving coverage and robustness. [1] [2] [3] [4]ListsTest,SetsTest,MapsTest: Added immutability tests to ensure returned collections are unmodifiable. [1] [2] [3] [4] [5] [6]StringToByteConverter, including negative test cases for conversion failures.AbstractConverterTest. [1] [2]ArtifactDetectorwith and without JDK libraries.setPriorityinAbstractURLClassPathHandleTest.Other Improvements:
levelfield in theDeprecation.Builderclass, improving builder usability.These changes collectively improve the reliability, maintainability, and automation of the project.
References:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]